import request from '@/utils/net'

export const login = (data) => {
  return request({
    url: '/admin/v1/login',
    method: 'post',
    data
  })
}

export const menus = (params) => {
  return request({
    url: '/admin/v1/menus',
    method: 'get',
    params
  })
}